package com.javafactroy.kunlong.bip.icp.message.data.iface;

import com.javafactroy.kunlong.bip.icp.message.data.base.AppByteBuffer;

public interface AppBase {
    int MAX_FRAME_LENGTH = 4 * 1024 * 1024 * 20;
    int LENGTH_FIELD_OFFSET = 16;
    int LENGTH_FIELD_LENGTH = 4;
    int LENGTH_ADJUST_NETTY = -20;

    void init(byte[] byteBuffer);

    void decode(AppByteBuffer byteBuffer);

    void encode(AppByteBuffer byteBuffer);

    int getMsgId();
}
